DeviceState

abstract class DeviceState

Device state information.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Connection state.
Link copied to clipboard
Reason why the device is in the current state.

Functions

Link copied to clipboard
abstract fun canBeConnected(): Boolean
Tells whether the device can be connected.
Link copied to clipboard
abstract fun canBeDisconnected(): Boolean
Tells whether the device can be disconnected.
Link copied to clipboard
abstract fun canBeForgotten(): Boolean
Tells whether the device can be forgotten.
Link copied to clipboard
Gets the currently active connector.
Link copied to clipboard
Gets the device connection state.
Link copied to clipboard
Gets the reason why device is in the current state.
Link copied to clipboard
Gets the list of available connectors for this device.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getShutdownDelay(): Int
Gets the delay before the device shuts down, in milliseconds.